<script setup lang="ts">
// 提供name属性即可
defineProps<{
    name: string
    width?: string
    height?: string
}>()
</script>

<template>
    <svg aria-hidden="true" :style="{ width: width || 1 + 'em', height: height || 1 + 'em' }">
        <use :xlink:href="`#icon-${name}`" />
    </svg>
</template>

<style lang="scss" scoped></style>
